<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>	
<html>
<head>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9"></meta>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/main.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/top_style.css" />
<script language="javascript" type="text/javascript"
	src="<%=request.getContextPath()%>/swordweb/core/jsimport/Sword.js"  bizJs="['/pages/biz/brand/brandWebForm.js']"></script>
<script language="javascript" type="text/javascript" src="<%=request.getContextPath()%>/plugins/ckeditor/ckeditor.js"></script>

</head>
<body style="border-left: 1px solid #DDD9DA;">
	<div sword="PageInit" name="pageinit_1" onAfter="PageInit_onAfter_pageinit_1()"></div>
	<input style="display: none;" id="vipsyts" type="text" value="${vipsyts }"></input>
	<div class="top_2">
		<div class="top_nav_list">
			<a>编辑店铺</a>
		</div>
	</div>
	<div align="center" style="margin-left:25px;margin-top:25px; margin-right: 25px;">
		<div sword="SwordForm" name="form_brandsz">
			<div name="categoryId" type="hidden"></div>
			<div name="cBrandId" type="hidden"></div>
			<div name="webusername" type="hidden"></div>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="15%" />
			   	 	<col width="35%" />
					<col width="15%" />
			    	<col width="35%" />
				</colgroup>
				<tr>
					<th colspan="4" class="title">
						基本设置
						&nbsp;&nbsp;&nbsp;&nbsp;
						(提示：设置new后店铺排序靠前！设置增加财富之后会提高关注度哦！)
					</th>
		    	</tr>
		    	<tr>
					<th>设置new</th>
					<td colspan="1">
						<div name="cBrandSfnew" type="radio" x="35%"  defValue="0"
							<c:if test="${vipsyts <= 0 || newnum <= 0}">
									disable="true"
							</c:if>
						>       
							<div code="0" caption="否"></div>
							<div code="1" caption="是"></div>
						</div>
						<c:if test="${vipsyts <= 0}">
									<span style="color:red;font-weight:900;">(购买vip后可进行设置)</span>
						</c:if>
						<c:if test="${vipsyts > 0 && newnum <= 0}">
									<span style="color:red;font-weight:900;">(您的总new个数不满足设置，请点击购买链接及时购买)</span>
						</c:if>
					</td>
					<th>总new个数</th>
					<td colspan="1">
							<div type="label" name="cBrandNewnum"  x="20%"></div>个
							<div sword="SwordSubmit" name="buynew" value="购买new" class="red" onclick="SwordSubmit_onclick_buyvip()"
								<c:if test="${vipsyts <= 0}">
									disable="true"
								</c:if>
							></div>
					</td>
				</tr>
			</table>
			<div class="mar_center">
				<span class="fl_340 pad_bot"></span> <span class="pad_bot bot"><a onclick="a_onclick_submit()" style="cursor: pointer;">提交设置</a> </span>
			</div>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="15%" />
			   	 	<col width="35%" />
					<col width="15%" />
			    	<col width="35%" />
				</colgroup>
		    	<tr>
					<th>设置增加财富</th>
					<td colspan="1">
						增加财富值
						<div name="cBrandWealth" type="select"  defValue="0"
							<c:if test="${vipsyts <= 0 || totalwealth <= 0}">
									disable="true"
							</c:if>
						>
							<div code="0" caption="不增加财富值"></div>
							<div code="1" caption="1"></div>
							<div code="2" caption="2"></div>
							<div code="3" caption="3"></div>
							<div code="4" caption="4"></div>
							<div code="5" caption="5"></div>
							<div code="6" caption="6"></div>
							<div code="7" caption="7"></div>
							<div code="8" caption="8"></div>
							<div code="9" caption="9"></div>
						</div>
						时间限制<span style="color:red;font-weight:900;">(注：每设置一次会自动加长时限)</span>
						<div name="cBrandWealthSjxz" type="select"  defValue="0"
							<c:if test="${vipsyts <= 0 || totalwealth <= 0}">
									disable="true"
							</c:if>
						>
							<div code="0" caption="不限"></div>
							<div code="1" caption="1天"></div>
							<div code="2" caption="2天"></div>
							<div code="3" caption="3天"></div>
							<div code="4" caption="4天"></div>
							<div code="5" caption="5天"></div>
							<div code="6" caption="6天"></div>
							<div code="7" caption="7天"></div>
							<div code="8" caption="8天"></div>
							<div code="9" caption="9天"></div>
							<div code="10" caption="10天"></div>
							<div code="11" caption="11天"></div>
							<div code="12" caption="12天"></div>
							<div code="13" caption="13天"></div>
							<div code="14" caption="14天"></div>
							<div code="15" caption="15天"></div>
							<div code="16" caption="16天"></div>
							<div code="17" caption="17天"></div>
							<div code="18" caption="18天"></div>
							<div code="19" caption="19天"></div>
							<div code="20" caption="20天"></div>
							<div code="21" caption="21天"></div>
							<div code="22" caption="22天"></div>
							<div code="23" caption="23天"></div>
							<div code="24" caption="24天"></div>
							<div code="25" caption="25天"></div>
							<div code="26" caption="26天"></div>
							<div code="27" caption="27天"></div>
							<div code="28" caption="28天"></div>
							<div code="29" caption="29天"></div>
							<div code="30" caption="30天"></div>
						</div>
						<c:if test="${vipsyts <= 0}">
									<span style="color:red;font-weight:900;">(购买vip后可进行设置)</span>
						</c:if>
						<c:if test="${vipsyts > 0 && totalwealth <= 0}">
									<span style="color:red;font-weight:900;">(您的总财富值不满足设置，请点击购买链接及时购买)</span>
						</c:if>
					</td>
					<th>总财富值</th>
					<td colspan="1">
						<SPAN>
							<div type="label" name="cBrandTotalwealth"  x="16%"></div>财富
							<div sword="SwordSubmit" name="buywealth" value="购买财富值" class="red" onclick="SwordSubmit_onclick_buyvip()"
								<c:if test="${vipsyts <= 0}">
									disable="true"
								</c:if>
							></div>
						</SPAN>
					</td>
				</tr>
			</table>
			<div class="mar_center">
				<span class="fl_340 pad_bot"></span> <span class="pad_bot bot"><a onclick="a_onclick_submit2()" style="cursor: pointer;">提交设置</a> </span>
			</div>
		</div>
	</div>
	<div align="center" style="margin-left:25px;margin-top:0px; margin-right: 25px;">
		<div sword="SwordForm" name="form_brandweb">
			<div name="cBrandId" type="hidden"></div>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="15%" />
			   	 	<col width="85%" />
				</colgroup>
				<tr>
					<th colspan="2" class="title">
						编辑手机客户端广告页
						&nbsp;&nbsp;&nbsp;&nbsp;
						<c:if test="${brandwebshzt != 'dsh'}">
							<div sword="SwordSubmit" name="editweb" value="点击编辑新广告页" class="green" onclick="input_onclick_editweb()"></div>
						</c:if>
						&nbsp;&nbsp;&nbsp;
						(提示：vip用户可编辑优质网页！
						<div sword="SwordSubmit" name="buyvip" value="购买vip" class="red" onclick="SwordSubmit_onclick_buyvip()"></div>
						)
					</th>
		    	</tr>
		    	<c:if test="${brandwebshzt == 'dsh' && !empty cBrandFilenewpath}">
			    	<tr>
			    		<td colspan="2">
			    			<div name="cBrandFilenewpath" type="text" show="false"></div>
			    			亲，您新编辑的店铺广告页已提交，我们将在一个工作日内进行处理，请耐心等待结果
			    			&nbsp;&nbsp;&nbsp;
							<div sword="SwordSubmit" name="ylnew" value="点击预览" class="edit" onclick="SwordSubmit_onclick_ylnew()"></div>
			    		</td>
			    	</tr>
		    	</c:if>
		    	<c:if test="${!empty cBrandFileoldpath}">
			    	<tr>
			    		<td colspan="2">
			    			<div name="cBrandFileoldpath" type="text" show="false"></div>
			    			亲，这里是你客户端目前展示的广告页，点击后面按钮可进行预览哦
			    			&nbsp;&nbsp;&nbsp;
							<div sword="SwordSubmit" name="ylold" value="点击预览" class="edit" onclick="SwordSubmit_onclick_ylold()"></div>
			    		</td>
			    	</tr>
		    	</c:if>
		    	<tr>
		    		<td colspan="2">
		    			<span style="color:red;font-weight:300;">360浏览器请选择极速模式！具体操作见左侧使用帮助！</span>
		    		</td>
		    	</tr>
			    <tr id="yzwy" style="display:none;">
			    	<th>广告页内容：</th>
					<td>
						<div name="yzbrandwebcontent" type="textarea" id="webcontent"></div>
					</td>
	    		</tr>
			    <tr id="ybwy" style="display:none;">
			    	<th>广告页内容：</th>
					<td colspan="1">
						<TABLE width="800px">
			    			<TR>
			    				<TD>
			    					<div name="fj" dataName="ybwyimg" type="file2" fileListMax="1" addCaption="添加图片" 
						  				typeFilter="{'图片 (*.jpg, *.jpeg, *.gif, *.png)': '*.jpg; *.jpeg; *.gif; *.png'}" 
						  				deleteCtrl="File2Ctrl_deleteFile"></div>
			    				</TD>
			    			</TR>
			    			<TR>
			    				<TD>
			    					<div name="ybwytext" type="textarea"></div>
			    				</TD>
			    			</TR>
			    		</TABLE>
					</td>
				</tr>	
			</table>
			<c:if test="${brandwebshzt != 'dsh'}">
			    <div class="mar_center">
					<span class="fl_340 pad_bot" style="width:35%"></span> 
					<span class="pad_bot bot"><a onclick="a_onclick_yulan()" style="cursor: pointer;width:100px;">预览广告页</a> </span>
					<span class="pad_bot bot"><a onclick="a_onclick_confirmSub()" style="cursor: pointer;width:110px;">确认提交广告页</a> </span>
				</div>
			</c:if>
			<div style="clear:both"></div>
		</div>		
	</div>
	<!-- 提交设置new开始 -->
	<div sword="SwordSubmit" name="sub_tjsz" show="false" value="提交设置"
		tid="BrandWebService_updateBrandSz" onSuccess="SwordSubmit_onSuccess_sub_tjsz()">
		<div widgetName="form_brandsz"></div>
	</div>
	<!-- 提交设置new结束 -->
	<!-- 提交设置wealth开始 -->
	<div sword="SwordSubmit" name="sub_tjszwealth" show="false" value="提交设置"
		tid="BrandWebService_updateBrandSzWealth" onSuccess="SwordSubmit_onSuccess_sub_tjsz()">
		<div widgetName="form_brandsz"></div>
	</div>
	<!-- 提交设置wealth结束 -->
	<!-- 预览web页开始 -->
	<div sword="SwordSubmit" name="sub_yl" value="预览" show="false"
		 tid="FreeMarkerService_genHtmlAndGetPath" onSuccess="SwordSubmit_onSuccess_sub_yl()">
		 <div widgetName="form_brandweb"></div>
	</div>
	<!-- 预览web页结束 -->
	<!-- 提交web页开始 -->
	<div sword="SwordSubmit" name="sub_tjweb" value="提交web页" show="false"
		 tid="BrandWebService_tjWeb" onSuccess="SwordSubmit_onSuccess_sub_tjweb()">
		 <div widgetName="form_brandweb"></div>
	</div>
	<!-- 提交web页结束 -->
</body>
</html>